﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Chinaer.Core.BaseCore
{
    public enum LoginStatus
    {
        /// <summary>
        /// 登录成功
        /// </summary>
        [Description("Success")]
        Success = 10,//登录成功
     
        /// <summary>
        /// 登录失败
        /// </summary>
        [Description("False")]
        False = 30,//登录失败
        /// <summary>
        /// 重复登录
        /// </summary>
        [Description("LoginRepeat")]
        LoginRepeat = 40,//重复登录

        /// <summary>
        /// 用户名已经存在
        /// </summary>
        [Description("IsExists")]
        IsExists = 60,//用户名已经存在
        /// <summary>
        /// 表示的是传入的实体为
        /// </summary>
        [Description("EntityIsNull")]
        EntityIsNull = 70,//表示的是传入的实体为NULL
        /// <summary>
        /// 用户名为空
        /// </summary>
        [Description("UserNameIsNull")]
        UserNameIsNull = 80,//用户名为空
        /// <summary>
        /// 密码为空
        /// </summary>
        [Description("PasswordIsNull")]
        PasswordIsNull = 90,//密码为空
        /// <summary>
        /// 用户不存在
        /// </summary>
        [Description("UserNotExists")]
        UserNotExists = 100,//用户不存在
        /// <summary>
        /// 禁止该用户登录
        /// </summary>
        [Description("Forbidden")]
        Forbidden = 110,//禁止该用户登录
        /// <summary>
        /// 用户名或密码错误
        /// </summary>
        [Description("WrongPassword")]
        WrongPasswordOrUserName = 120,//密码错误
        /// <summary>
        /// 超时
        /// </summary>
        [Description("TimeOut")]
        TimeOut=130,//超时
        /// <summary>
        /// 未登录
        /// </summary>
        [Description("NonLogin")]
        NonLogin=140,//未登录
        /// <summary>
        /// 程序执行出现异常信息
        /// </summary>
        [Description("Exception")]
        Exception=150,  
        /// <summary>
        /// 未知错误信息
        /// </summary>
        [Description("UnKnown")]
        UnKnown = 500//未知错误
    }
}
